package com.test.jwtToken.service.impl;

import com.test.jwtToken.entity.User;
import com.test.jwtToken.mapper.UserMapper;
import com.test.jwtToken.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User login(User user) {
        User userDb = userMapper.login(user);
        return userDb;
    }

}
